package com.itjcloud.iot.gateway.model;

import com.nimbusds.jose.Algorithm;
import com.nimbusds.jose.JWSAlgorithm;

/**
 * 加密枚举类
 *
 * @author ZhangYinGang
 */
public enum AlgorithmEnum {


    /**
     * hs256
     */
    HS256 {
        @Override
        public Algorithm getAlgorithm() {
            return super.getAlgorithm();
        }

    },

    RS256 {
        @Override
        public Algorithm getAlgorithm() {
            return JWSAlgorithm.RS256;
        }
    },

    HS384 {
        @Override
        public Algorithm getAlgorithm() {
            return JWSAlgorithm.RS384;
        }
    };


    public Algorithm getAlgorithm() {
        return JWSAlgorithm.HS256;
    }


}
